<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<th:block th:replace="tpl :: common_head()"></th:block>
		<title>角色管理</title>
	</head>
	<body th:with="entrance='/system/role/index'">
		<th:block th:replace="tpl :: common_body(~{::.main-right})">
			<div class="main-right">
				<h1 class="main-right-h1">角色管理</h1>
				<ul class="main-right-tab">
					<li class="selected">角色列表</li>
					<li><a href="0">新增角色</a></li>
				</ul>
<div class="panel">
<table class="table">
	<thead>
		<tr><th>角色名称</th><th>状态</th></tr>
	</thead>
	<tbody>
		<th:block th:each="role : ${list}">
			 <tr>
				<td>
					<a th:text="${role.name}" th:href="${role.id}"></a>
				</td>
				<td th:text="${role.enabled==true?'启用':'禁用'}"></td>
			 </tr>
		</th:block>
	</tbody>
</table>
</div>				
			</div>
		</th:block>
	</body>
</html>